import request from '@/utils/request'

// 查询证件借还列表
export function listManagement(query) {
  return request({
    url: '/document/management/list',
    method: 'get',
    params: query
  })
}

// 查询证件借还详细
export function getManagement(documentId) {
  return request({
    url: '/document/management/' + documentId,
    method: 'get'
  })
}

// 新增证件借还
export function addManagement(data) {
  return request({
    url: '/document/management',
    method: 'post',
    data: data
  })
}

// 修改证件借还
export function updateManagement(data) {
  return request({
    url: '/document/management',
    method: 'put',
    data: data
  })
}

// 删除证件借还
export function delManagement(documentId) {
  return request({
    url: '/document/management/' + documentId,
    method: 'delete'
  })
}
